﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucFinder.ascx.cs" Inherits="Billing2.ucFinder" %>
<%@ Register Src="~/Controls/ucHighlight.ascx" TagName="ucHighlight" TagPrefix="uc1" %>
<asp:UpdatePanel runat="server" ID="updatePanel1">
    <ContentTemplate>
        <uc1:ucHighlight ID="ucHighlight1" runat="server" />
        <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">
            <table width="80%" style="height: 32px; width: 767px">
                <tr>
                    <td align="right">
                        Search
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSearch" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        <asp:DropDownList ID="ddlFilterCondition" runat="server">
                            <asp:ListItem Selected="True">Equals to</asp:ListItem>
                            <asp:ListItem>Like</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:UpdatePanel ID="ActionPanel" runat="server">
                            <ContentTemplate>
                                <asp:Button ID="btnSearch" runat="server"  Text="Search" OnClick="btnSearch_Click" />
                                <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <br />
        <asp:GridView ID="GridViewSubscriber" runat="server" AutoGenerateColumns="False" CellPadding="0"
            CellSpacing="1" CssClass="GridViewStyle" GridLines="None" OnRowCommand="ActiveGridView_RowCommand"
            AllowPaging="True" OnPageIndexChanging="ActiveGridView_PageIndexChanging" PageSize="20"
            PagerSettings-Mode="NumericFirstLast">
            <RowStyle CssClass="GridViewRowStyle" />
            <HeaderStyle CssClass="GridViewHeaderStyle" />
            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
            <Columns>                
                <asp:TemplateField HeaderText="Organization" SortExpression="OrgIDName" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol10" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("OrgIDName")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Site" SortExpression="SiteIDName" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol11" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("SiteIDName")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Cost Centre" SortExpression="CostCentreIDName" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol12" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("CostCentreIDName")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>


                <asp:TemplateField HeaderText="Host Name" SortExpression="AssetID" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="linkBtnEdit" CommandArgument='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("ID")))%>'
                            CommandName="EditData" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("AssetID")))%>'></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
<%--                <asp:TemplateField HeaderText="Email" SortExpression="Email" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol03" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("Email")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>--%>
                <asp:TemplateField HeaderText="Username" SortExpression="Username" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol03" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("Username")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Effective Date" SortExpression="EffectiveDate" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol04" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("EffectiveDate","{0:dd/MM/yyyy}")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Termination Date" SortExpression="TerminatedDate"
                    HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol05" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("TerminatedDate","{0:dd/MM/yyyy}")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Status" SortExpression="StatusActiveInActive" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Label ID="xSECol06" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("StatusActiveInActive")))%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:HiddenField ID="xOrgID" runat="server" Value="0" />
<asp:HiddenField ID="xPrimaryKey" runat="server" Value="0" />
<asp:HiddenField ID="xDialogID" runat="server" Value="" />
<asp:HiddenField ID="xQueryType" runat="server" Value="0" />
<asp:HiddenField ID="xParentID" runat="server" Value="0" />
